<template>
  <Article :list="articleList"></Article>
</template>

<script>
import Article from '~/components/ArticleList.vue'
export default {
  layout: "default",
  components: {
    Article
  },
  data(){
     return {
       articleList:{},
     }
  },
  async asyncData(that) {
      await that.store.dispatch("menus/menusList", {}).then((res)=>{
          return res.data
      })
      let articleList = await that.store.dispatch("article/articleList", {}).then(res=>{
        return res.data
      })
      return {
        articleList:articleList
      };
  }
}
</script>

<style>
.body{
  height:100%;
  margin:100px;
}
.container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.title {
  font-family: "Quicksand", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /* 1 */
  display: block;
  font-weight: 300;
  font-size: 100px;
  color: #35495e;
  letter-spacing: 1px;
}

.subtitle {
  font-weight: 300;
  font-size: 42px;
  color: #526488;
  word-spacing: 5px;
  padding-bottom: 15px;
}

.links {
  padding-top: 15px;
}
</style>

